/*
 *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.base.async.cmd.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.iwindplus.base.domain.enums.BaseEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 异步命令状态枚举定义.
 *
 * @author zengdegui
 * @since 2025/9/14
 */
@Getter
@RequiredArgsConstructor
public enum CmdStatusEnum implements BaseEnum<Integer> {
    /**
     * 初始化.
     */
    INIT(0, "初始化"),

    /**
     * 执行.
     */
    EXECUTE(1, "执行"),

    /**
     * 成功.
     */
    SUCCESS(2, "成功"),

    /**
     * 错误.
     */
    ERROR(3, "错误"),

    /**
     * 丢弃.
     */
    DISCARD(4, "丢弃"),
    ;

    /**
     * 值.
     */
    @EnumValue
    private final Integer value;

    /**
     * 描述.
     */
    private final String desc;
}
